/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "应收",TableName = "Receivable")]
    public partial class Receivable:BaseEntity
    {
        /// <summary>
       ///流水号
       /// </summary>
       [SugarColumn(IsPrimaryKey = true)]
       [Key]
       [Display(Name ="流水号")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string ReceivableId { get; set; }

       /// <summary>
       ///名称
       /// </summary>
       [Display(Name ="名称")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string ReceivableName { get; set; }

       /// <summary>
       ///财务类别编号
       /// </summary>
       [Display(Name ="财务类别编号")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string Ordertype { get; set; }

       /// <summary>
       ///付款人
       /// </summary>
       [Display(Name ="付款人")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string Payer { get; set; }

       /// <summary>
       ///收款人
       /// </summary>
       [Display(Name ="收款人")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string Payee { get; set; }

       /// <summary>
       ///应收金额
       /// </summary>
       [Display(Name ="应收金额")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? ReceivablePrice { get; set; }

       /// <summary>
       ///实收金额
       /// </summary>
       [Display(Name ="实收金额")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? ActualpaymentPrice { get; set; }

       /// <summary>
       ///剩余金额
       /// </summary>
       [Display(Name ="剩余金额")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       public decimal? ResiduePrice { get; set; }

       /// <summary>
       ///最后收款日期
       /// </summary>
       [Display(Name ="最后收款日期")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? EndReceiptTime { get; set; }

       /// <summary>
       ///备注
       /// </summary>
       [Display(Name ="备注")]
       [MaxLength(200)]
       [Column(TypeName="nvarchar(200)")]
       [Editable(true)]
       public string Remark { get; set; }

       /// <summary>
       ///状态
       /// </summary>
       [Display(Name ="状态")]
       [Column(TypeName="int")]
       public int? PayReceState { get; set; }

       /// <summary>
       ///创建时间
       /// </summary>
       [Display(Name ="创建时间")]
       [Column(TypeName="datetime")]
       public DateTime? CreateTime { get; set; }

       /// <summary>
       ///是否删除
       /// </summary>
       [Display(Name ="是否删除")]
       [Column(TypeName="sbyte")]
       public sbyte? IsDeleted { get; set; }

       
    }
}